package util;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
	private static BeanFactory factory;
	static {
		ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(
				new String[] {						
						"/WEB-INF/applicationContext.xml" });

		factory = (BeanFactory) appContext;
	}

	public static BeanFactory getFactory() {
		return factory;
	}
}
